//
//  SMBAuthViewController.swift
//  HakimSMBDemo
//
//  Created by 范华泽 on 2017/3/17.
//  Copyright © 2017年 Hakim. All rights reserved.
//

import UIKit

protocol SMBAuthViewControllerDelegate: NSObjectProtocol {
    func couldSmbAuthViewController(controller:SMBAuthViewController, done:Bool)
}

class SMBAuthViewController: UIViewController {

    @IBOutlet weak var Workgroup: UITextField!
    
    @IBOutlet weak var Username: UITextField!
    
    @IBOutlet weak var Password: UITextField!
    
    @IBOutlet weak var serverLabel: UILabel!
    
    public var delegate:SMBAuthViewControllerDelegate?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.view.backgroundColor = UIColor.white
    }
    
    public var server: String? {
        didSet{
//            serverLabel.text = server
        }
    }

    @IBAction func sureButtonClick(_ sender: UIButton) {
        if (delegate != nil){
            delegate?.couldSmbAuthViewController(controller: self, done: true)
        }
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
